/**    
* @Title: ConfAutoConfiguration.java  
* @Package com.kaver.conf.springboot.autoConfiguration   
* @author roc   
* @date 2019年2月1日 上午10:10:41  
* @version V1.0  
* @copyright kaver 
*/
package com.kaver.conf.springboot.autoConfiguration;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kaver.constant.PropertyConstant;
import com.kaver.mock.ConfMockAspect;
import com.kaver.mock.SpelExcetor;
import com.kaver.spring.RomoteConfScheduler;

/**
 * @ClassName: ConfAutoConfiguration
 * @Description: 自动配置
 * @author roc
 * @date 2019年2月1日 上午10:10:41
 * 
 */
@Configuration
public class ConfAutoConfiguration {
	@Bean
	@ConditionalOnProperty(value = { PropertyConstant.CONF_AUTOUPDATE_ENABLE,
			PropertyConstant.CONF_ENABLE }, havingValue = "true", matchIfMissing = true)
	public RomoteConfScheduler getRomoteConfScheduler() {
		return new RomoteConfScheduler();
	}
	@Bean
    public SpelExcetor getSpelExcetor() {
        return new SpelExcetor();
    }
	@Bean
    public ConfMockAspect getConfMockAspect() {
        return new ConfMockAspect();
    }
}
